package cn.tedu.yl.user.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class UserQuery {
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "账号")
    private String account;
    @ApiModelProperty(value = "状态")
    private String status;
    @ApiModelProperty(value = "用户id")
    private Long id;//编辑时需要回显待编辑用户数据时使用
    //前端传入分页参数  当前页面展示条数
    @ApiModelProperty(value = "每页记录数")
   @NotNull(message = "每页记录数不能为空")
    private Integer pageSize;
    //前端传入分页参数  当前查询页数
    @NotNull(message = "页码不能为空")
    @ApiModelProperty(value = "页码")
    private Integer pageNum;
}
